Method for unlocking electronic device, and apparatus therefor

ABSTRACT

A method for unlocking an electronic device and an apparatus therefor are provided. The method includes the following steps: when an electronic device is in a function locked state, acquiring unlock trigger information generated by at least one operation in an operation area of the electronic device, where the unlock trigger information includes duration information of each operation of the at least one operation; and unlocking the function locked of the electronic device when the unlock trigger information matches preset unlock information. Concealment when a user unlocks function locked of an electronic device can be improved, so that security of data in the electronic device can be improved.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No.PCT/CN2014/075942, filed on Apr. 22, 2014, which claims priority toChinese Patent Application No. 201310432756.9, filed on Sep. 22, 2013,both of which are hereby incorporated by reference in their entireties.

TECHNICAL FIELD

The present invention relates to the field of electronic technologies,and in particular, to a method for unlocking an electronic device and anapparatus therefor.

BACKGROUND

With the continuous development and perfection of electronictechnologies, electronic devices such as a mobile phone, a tabletcomputer, and the like have already become an indispensable part ofpeople's lives. People not only communicate with each other by usingthese electronic devices, but also transfer files, make photographs,play games, and the like.

With the development of technologies, because an electronic devicestores personal information and important data of a user, securityperformance of the electronic device also attracts attention. In theprior art, a restriction technology such as screen locking orapplication encryption, is used to reinforce security performance ofinformation in the electronic device. For example, as for slide tounlock using a pattern on 9 grids, a motion track drawn by the user in apreset area of the electronic device is matched; if the motion trackdrawn by the user is consistent with a preset motion track stored in theelectronic device, a screen of the electronic device is unlocked, andthe user can normally use the electronic device.

Because when the user slides to unlock or enters a password, a drawnpattern, a slide gesture or an entered character is easily identified byanother person, security performance of data in the electronic devicecannot be better ensured, thereby reducing user experience.

SUMMARY

Embodiments of the present invention provide a method for unlocking anelectronic device and an apparatus therefor, which can improveconcealment when a user unlocks function locked of an electronic device,so that security of data in the electronic device is improved.

To solve the foregoing technical problem, according to a first aspect,an embodiment of the present invention provides a method for unlockingan electronic device, where the method may include, when an electronicdevice is in a function locked state, acquiring unlock triggerinformation generated by at least one operation in an operation area ofthe electronic device, where the unlock trigger information includesduration information of each operation of the at least one operation;and unlocking the function locked of the electronic device when theunlock trigger information matches preset unlock information.

According to the first aspect, in a first feasible implementation mannerof the first aspect, coding processing is performed on the acquiredunlock trigger information according to the duration information of eachoperation of the at least one operation, where the unlocking thefunction locked of the electronic device when the unlock triggerinformation matches preset unlock information includes, when the unlocktrigger information on which the coding processing is performed matchesthe preset unlock information, unlocking the function locked of theelectronic device.

According to the first feasible implementation manner of the firstaspect, in a second feasible implementation manner of the first aspect,the performing coding processing on the acquired unlock triggerinformation according to the duration information of each operation ofthe at least one operation includes acquiring a duration levelcorresponding to the duration information of each operation of the atleast one operation, and performing the coding processing on the unlocktrigger information according to a duration level corresponding toduration of each operation of the at least one operation, where theduration level corresponding to the duration information of eachoperation is duration range information that covers the durationinformation of each operation.

According to the first aspect, in a third feasible implementation mannerof the first aspect, the unlock trigger information further includesinformation of pressure produced by each operation of the at least oneoperation onto the operation area of the electronic device.

According to the third feasible implementation manner of the firstaspect, in a fourth feasible implementation manner of the first aspect,the method further includes performing coding processing on the acquiredunlock trigger information according to the duration information and thepressure information of each operation of the at least one operation,where the unlocking the function locked of the electronic device whenthe unlock trigger information matches preset unlock informationincludes, when the unlock trigger information on which the codingprocessing is performed matches the preset unlock information, unlockingthe function locked of the electronic device.

According to the fourth feasible implementation manner of the firstaspect, in a fifth feasible implementation manner of the first aspect,the performing coding processing on the acquired unlock triggerinformation according to the duration information and the pressureinformation of each operation of the at least one operation includesacquiring a trigger level corresponding to duration information andpressure information of a same operation of the at least one operation,and performing the coding processing on the unlock trigger informationaccording to the trigger level corresponding to the duration informationand the pressure information of the same operation of the at least oneoperation, where the trigger level corresponding to the durationinformation and the pressure information of the same operation isinformation of a value range that a combination of duration and pressurewhich covers the duration information and the pressure information ofeach operation falls into.

According to the first aspect or the first feasible implementationmanner of the first aspect or the second feasible implementation mannerof the first aspect or the third feasible implementation manner of thefirst aspect or the fourth feasible implementation manner of the firstaspect or the fifth feasible implementation manner of the first aspect,in a sixth feasible implementation manner of the first aspect, after theacquiring unlock trigger information generated by at least one operationin an operation area of the electronic device, the method furtherincludes displaying the acquired unlock trigger information.

According to the first aspect or the first feasible implementationmanner of the first aspect or the second feasible implementation mannerof the first aspect or the third feasible implementation manner of thefirst aspect or the fourth feasible implementation manner of the firstaspect or the fifth feasible implementation manner of the first aspector the sixth feasible implementation manner of the first aspect, in aseventh feasible implementation manner of the first aspect, theoperation area of the electronic device includes a touch screen of theelectronic device and/or a physical button of the electronic device.

According to a second aspect, an embodiment of the present inventionprovides an apparatus for unlocking an electronic device, where theapparatus may include an information monitoring module configured to,when an electronic device is in a function locked state, monitor unlocktrigger information generated by at least one operation in an operationarea of the electronic device, where time information carried by theunlock trigger information includes a time sequence formed by durationof each operation of the at least one operation; a code generatingmodule configured to perform coding processing on the monitored unlocktrigger information to generate a sensing signal; and an unlockingmodule configured to unlock the function locked of the electronic devicewhen the sensing signal matches a preset unlock signal.

According to the second aspect, in a first feasible implementationmanner of the second aspect, the apparatus further includes a firstcoding module configured to perform coding processing on the acquiredunlock trigger information according to the duration information of eachoperation of the at least one operation, where the unlocking module isspecifically configured to, when the unlock trigger information on whichthe coding processing is performed by the first coding module matchespreset unlock information, unlock the function locked of the electronicdevice.

According to the first feasible implementation manner of the secondaspect, in a second feasible implementation manner of the second aspect,the first coding module is specifically configured to acquire a durationlevel corresponding to the duration information of each operation of theat least one operation, and perform the coding processing on the unlocktrigger information according to a duration level corresponding toduration of each operation of the at least one operation, where theduration level corresponding to the duration information of eachoperation is duration range information that covers the durationinformation of each operation.

According to the second aspect, in a third feasible implementationmanner of the second aspect, the unlock trigger information furtherincludes information of pressure produced by each operation of the atleast one operation onto the operation area of the electronic device.

According to the third feasible implementation manner of the secondaspect, in a fourth feasible implementation manner of the second aspect,the apparatus further includes a second coding module configured toperform coding processing on the acquired unlock trigger informationaccording to the duration information and the pressure information ofeach operation of the at least one operation, where the unlocking moduleis specifically configured to, when the unlock trigger information onwhich the coding processing is performed by the second coding modulematches the preset unlock information, unlock the function locked of theelectronic device.

According to the fourth feasible implementation manner of the secondaspect, in a fifth feasible implementation manner of the second aspect,the second coding module is specifically configured to acquire a triggerlevel corresponding to duration information and pressure information ofa same operation of the at least one operation, and perform the codingprocessing on the unlock trigger information according to the triggerlevel corresponding to the duration information and the pressureinformation of the same operation of the at least one operation, wherethe trigger level corresponding to the duration information and thepressure information of the same operation is information of a valuerange that a combination of duration and pressure which covers theduration information and the pressure information of each operationfalls into.

According to the second aspect or the first feasible implementationmanner of the second aspect or the second feasible implementation mannerof the second aspect or the third feasible implementation manner of thesecond aspect or the fourth feasible implementation manner of the secondaspect or the fifth feasible implementation manner of the second aspect,in a sixth feasible implementation manner of the second aspect, theapparatus further includes a displaying module configured to display theacquired unlock trigger information.

According to the second aspect or the first feasible implementationmanner of the second aspect or the second feasible implementation mannerof the second aspect or the third feasible implementation manner of thesecond aspect or the fourth feasible implementation manner of the secondaspect or the fifth feasible implementation manner of the second aspector the sixth feasible implementation manner of the second aspect, in aseventh feasible implementation manner of the second aspect, theoperation area of the electronic device includes a touch screen of theelectronic device and/or a physical button of the electronic device.

It can be known from the above that, when an electronic device is in afunction locked state, unlock trigger information may be matchedaccording to duration information of each operation in the acquiredunlock trigger information; and the function locked of the electronicdevice is unlocked when the unlock trigger information matches presetunlock information. In addition, because operation duration informationtends to be concealed and is more imperceptible compared with a slidegesture or direct character entering, by using the operation durationinformation as an unlock condition, concealment can be improved when auser unlocks the function locked of the electronic device, so thatsecurity of data in the electronic device is improved, thereby improvinguser experience.

BRIEF DESCRIPTION OF THE DRAWINGS

To describe the technical solutions in the embodiments of the presentinvention more clearly, the following briefly introduces theaccompanying drawings required for describing the embodiments. Theaccompanying drawings in the following description show merely someembodiments of the present invention, and a person of ordinary skill inthe art may still derive other drawings from these accompanying drawingswithout creative efforts.

FIG. 1 is a schematic flowchart of a method for unlocking an electronicdevice according to an embodiment of the present invention;

FIG. 2 is a schematic flowchart of another method for unlocking anelectronic device according to an embodiment of the present invention;

FIG. 3 is a schematic flowchart of still another method for unlocking anelectronic device according to an embodiment of the present invention;

FIG. 4 is a schematic structural diagram of an apparatus for unlockingan electronic device according to an embodiment of the presentinvention;

FIG. 5 is a schematic structural diagram of another apparatus forunlocking an electronic device according to an embodiment of the presentinvention;

FIG. 6 is a schematic structural diagram of still another apparatus forunlocking an electronic device according to an embodiment of the presentinvention; and

FIG. 7 is a schematic structural diagram of an apparatus for unlockingan electronic device based on a computer system according to anembodiment of the present invention.

DETAILED DESCRIPTION

The following clearly describes the technical solutions in theembodiments of the present invention with reference to the accompanyingdrawings in the embodiments of the present invention. The describedembodiments are merely a part rather than all of the embodiments of thepresent invention. All other embodiments obtained by a person ofordinary skill in the art based on the embodiments of the presentinvention without creative efforts shall fall within the protectionscope of the present invention.

In the embodiments of the present invention, when an electronic deviceis in a function locked state, unlock trigger information generated byat least one operation in an operation area of the electronic device isacquired; and the function locked of the electronic device is unlockedwhen the unlock trigger information matches preset unlock information.

The electronic device may be an electronic device with a touch screenand/or a physical button, for example, a mobile phone, a computer, atablet computer, a password insurance apparatus, or the like, where thepassword insurance apparatus is an apparatus disposed on a passwordinsurance box and used to control a switch of the password insurancebox; the apparatus for unlocking an electronic device may be anindependent device or be integrated with the electronic device, and isconfigured to unlock the function locked of the electronic device.

A method for unlocking an electronic device provided by the embodimentsof the present invention may be applied to a scenario in which a screenof the electronic device is unlocked, for example, a scenario in which ascreen of a mobile phone is unlocked, a computer interface is locked, orthe like, and may also be applied to a scenario in which applicationsoftware is derestricted, for example, a scenario in which theapplication software is logged in to by using an account. The method forunlocking an electronic device may also be applied to a scenario inwhich unlock is performed when private data or a personal item is viewedor taken, for example, a scenario in which when information, contact orthe like in a mobile phone is viewed, the mobile phone needs to beunlocked, or when a personal item is taken from the password insurancebox, the switch of the password insurance box needs to be turned off.

With reference to FIG. 1 to FIG. 3, a method for unlocking an electronicdevice provided by an embodiment of the present invention is describedin detail in the following. It should be noted that the method accordingto the embodiments shown in FIG. 1 to FIG. 3 may be applied to theapparatus for unlocking an electronic device.

Refer to FIG. 1, which is a schematic flowchart of a method forunlocking an electronic device according to an embodiment of the presentinvention. As shown in FIG. 1, the method may include the followingsteps S101 to S102.

S101. When an electronic device is in a function locked state, acquireunlock trigger information generated by at least one operation in anoperation area of the electronic device, where the unlock triggerinformation includes duration information of each operation of the atleast one operation.

Specifically, the electronic device being in the function locked stateincludes the electronic device is in a screen locked state or anapplication in the electronic device is in a to-be-verified state, orthe like, and the apparatus for unlocking an electronic device acquiresunlock trigger information generated by at least one operation performedby a user in the operation area of the electronic device, where theunlock trigger information includes duration information of eachoperation of the at least one operation. In addition to the durationinformation of the operation, the unlock trigger information may furtherinclude other feature information of the operation, for example,double-click, click, operation strength, a slide length of a slideoperation, or the like.

Preferably, to more effectively ensure security of the electronicdevice, the acquired unlock trigger information includes durationinformation of each operation of two or more operations.

It should be noted that the operation area of the electronic device mayinclude a touch screen of the electronic device and/or a physical buttonof the electronic device, and the operation performed by the user may bea touch operation performed on the touch screen by the user and/or aclick operation performed on the physical button by the user.

S102. Unlock the function locked of the electronic device when theunlock trigger information matches preset unlock information.

Specifically, the apparatus for unlocking an electronic device may matchthe duration information of each operation of the at least one operationwith the preset unlock information; and when the duration information ofeach operation of the at least one operation matches and is consistentwith the preset unlock information, the apparatus for unlocking anelectronic device unlocks the function locked of the electronic device.

For example, if the preset unlock information is that a first operation(for example, a click operation) lasts for 5 seconds (s) and a secondoperation lasts for 3 s, and the same case is applied to the unlocktrigger information, the function locked of the electronic device isunlocked.

It should be noted that the user may set or reset an unlock signal whenthe user begins to use the electronic device or in a process of usingthe electronic device, and the preset unlock information is used toprovide information matching for the apparatus for unlocking anelectronic device to unlock the function locked of the electronicdevice. When the electronic device enters a setting state, the apparatusfor unlocking an electronic device may acquire the duration informationof the at least one operation performed by the user in the operationarea of the electronic device to generate the preset unlock information.Preferably, when the user performs an operation, a scale may bedisplayed in a screen of the electronic device to prompt the durationinformation of each operation of the at least one operation performed bythe user.

Certainly, the foregoing manner of generating the preset unlock signalis only an example, and the preset unlock signal may also be configuredin advance in the electronic device by a manufacturer or an operator.

In the embodiment of the present invention, when the electronic deviceis in the setting state, if an operation manner used by the user is atouch operation performed on the touch screen, accordingly, when theelectronic device is in the function locked state, the user needs toperform an unlock operation in a manner of performing a touch operationon the touch screen, an operable area is any position of the touchscreen, that is, the user performs a touch operation at any position inthe touch screen, and the apparatus for unlocking an electronic devicemay acquire the unlock trigger information. Similarly, when theelectronic device is in the setting state, if the operation manner usedby the user is a click operation performed on the physical button,accordingly, when the electronic device is in the function locked state,the user needs to perform an unlock operation in a manner of performinga click operation on the physical button, an operable area is any buttonof the physical button, that is, the user performs a click operation onany button of the physical button, and the apparatus for unlocking anelectronic device may acquire the unlock trigger information. Because aposition or a button is not limited in the operation area, when the userunlocks the function locked of the electronic device, concealment of anoperation performed by the user can be better improved.

Certainly, in the embodiment of the present invention, a mixed operationmanner may also be used. That is, when the electronic device is in thesetting state, the user may use a mixed operation that includes a touchoperation on the touch screen and a click operation on the physicalbutton, accordingly, when the electronic device is in the functionlocked state, the user may also perform an unlock operation by using amixed operation that includes a touch operation on the touch screen anda click operation on the physical button, an operable area is anyposition of the touch screen and any button of the physical button, thatis, the user performs a touch operation at any position in the touchscreen and a click operation on any button of the physical button, andthe apparatus for unlocking an electronic device may acquire the unlocktrigger information.

In the embodiment of the present invention, when an electronic device isin a function locked state, unlock trigger information may be matchedaccording to duration information of each operation in the acquiredunlock trigger information; and the function locked of the electronicdevice is unlocked when the unlock trigger information matches presetunlock information. In addition, because operation duration informationand pressure information tend to be concealed and are more imperceptiblecompared with a slide gesture or direct character entering, in theembodiment of the present invention, by using the operation durationinformation, or the operation duration information and the pressureinformation as an unlock condition, concealment can be improved when auser unlocks the function locked of the electronic device, so thatsecurity of data in the electronic device is improved, thereby improvinguser experience.

Refer to FIG. 2, which is a schematic flowchart of another method forunlocking an electronic device according to an embodiment of the presentinvention. The embodiment of the present invention is a specificimplementation manner of the embodiment shown in FIG. 1. As shown inFIG. 2, the method according to the embodiment of the present inventionincludes the following steps S201 to S204.

S201. When an electronic device is in a function locked state, acquireunlock trigger information generated by at least one operation in anoperation area of the electronic device, where the unlock triggerinformation includes duration information of each operation of the atleast one operation.

Specifically, the electronic device being in the function locked stateincludes the electronic device is in a screen locked state or anapplication in the electronic device is in a to-be-verified state, orthe like, and the apparatus for unlocking an electronic device acquiresunlock trigger information generated by at least one operation performedby a user in the operation area of the electronic device, where theunlock trigger information includes duration information of eachoperation of the at least one operation. In addition to the durationinformation of the operation, the unlock trigger information may furtherinclude other feature information of the operation, for example,double-click, click, operation strength, a slide length of a slideoperation, or the like.

Preferably, to more effectively ensure security of the electronicdevice, the acquired unlock trigger information includes durationinformation of each operation of two or more operations, and theapparatus for unlocking an electronic device may arrange the durationinformation of each operation according to a time sequence to generate aduration information sequence.

It should be noted that the operation area of the electronic device mayinclude a touch screen of the electronic device and/or a physical buttonof the electronic device, and the operation performed by the user may bea touch operation performed on the touch screen by the user and/or aclick operation performed on the physical button by the user.

S202. Display the acquired unlock trigger information.

Specifically, when the user performs an operation, the apparatus forunlocking an electronic device may display the acquired unlock triggerinformation. Preferably, the apparatus for unlocking an electronicdevice may control display of a scale in a screen of the electronicdevice, so as to prompt the duration information of each operation ofthe at least one operation performed by the user.

S203. Perform coding processing on the acquired unlock triggerinformation according to the duration information of each operation ofthe at least one operation.

Specifically, the apparatus for unlocking an electronic device mayperform the coding processing on the acquired unlock trigger informationaccording to the duration information of each operation of the at leastone operation.

Preferably, the apparatus for unlocking an electronic device acquires aduration level corresponding to the duration information of eachoperation of the at least one operation, and performs the codingprocessing on the unlock trigger information according to a durationlevel corresponding to duration of each operation of the at least oneoperation, where the duration level corresponding to the durationinformation of each operation is duration range information that coversthe duration information of each operation.

For example, level 1 of the duration level is defined as operationduration of (0,1] second, level 2 of the duration level is defined asoperation duration of (1, 2] seconds, level 3 of the duration level isdefined as operation duration of (2, 3] seconds, level 4 of the durationlevel is defined as operation duration of (3, 4] seconds, and the like.When the user performs an operation according to the scale displayed inthe screen of the electronic device, if duration of the performedoperation is within 0 to 1 second, a duration level corresponding to theoperation is level 1; if duration of the performed operation is within 1to 2 seconds, a duration level corresponding to the operation is level2, and the rest may be deduced by analogy. The apparatus for unlockingan electronic device may perform coding in a duration level manner andaccording to duration of an operation performed each time by the user,and perform coding processing on the foregoing duration informationsequence into a duration level sequence.

It should be noted that by defining a duration level, operation durationof the user may be subject to a specific error range, which reduces aprecision requirement for the operation duration. In addition, in a casein which the precision requirement for the operation duration is nothigh, the electronic device may not display or prompt the operationduration to the user. In this way, concealment of the unlock operationis higher, and security of data in the electronic device is better.

S204. When the unlock trigger information on which the coding processingis performed matches preset unlock information, unlock the functionlocked of the electronic device.

Specifically, the apparatus for unlocking an electronic device may matchthe unlock trigger information on which the coding processing isperformed with the preset unlock information; and when the unlocktrigger information on which the coding processing is performed matchesand is consistent with the preset unlock information, the apparatus forunlocking an electronic device unlocks the function locked of theelectronic device.

For example, if the preset unlock information is that a first operation(for example, a click operation) lasts for 5 s and a second operationlasts for 3 s, and the same case is applied to the unlock triggerinformation, the preset unlock information and the unlock triggerinformation are coded according to the same manner, and structures ofthe preset unlock information and the coded unlock trigger informationare also the same. In this case, the function locked of the electronicdevice is unlocked.

It should be noted that the user may set or reset an unlock signal whenthe user begins to use the electronic device or in a process of usingthe electronic device, and the preset unlock information is used toprovide information matching for the apparatus for unlocking anelectronic device to unlock the function locked of the electronicdevice. When the electronic device enters a setting state, the apparatusfor unlocking an electronic device may acquire the duration informationof the at least one operation performed by the user in the operationarea of the electronic device to generate the preset unlock information.Preferably, when the user performs an operation, a scale may bedisplayed in a screen of the electronic device to prompt the durationinformation of each operation of the at least one operation performed bythe user.

Certainly, the foregoing manner of generating the preset unlock signalis only an example, and the preset unlock signal may also be configuredin advance in the electronic device by a manufacturer or an operator.

In the embodiment of the present invention, when the electronic deviceis in the setting state, if an operation manner used by the user is atouch operation performed on the touch screen, accordingly, when theelectronic device is in the function locked state, the user needs toperform an unlock operation in a manner of performing a touch operationon the touch screen, an operable area is any position of the touchscreen, that is, the user performs a touch operation at any position inthe touch screen, and the apparatus for unlocking an electronic devicemay acquire the unlock trigger information. Similarly, when theelectronic device is in the setting state, if the operation manner usedby the user is a click operation performed on the physical button,accordingly, when the electronic device is in the function locked state,the user needs to perform an unlock operation in a manner of performinga click operation on the physical button, an operable area is any buttonof the physical button, that is, the user performs a click operation onany button of the physical button, and the apparatus for unlocking anelectronic device may acquire the unlock trigger information. Because aposition or a button is not limited in the operation area, when the userunlocks the function locked of the electronic device, concealment of anoperation performed by the user can be better improved.

Certainly, in the embodiment of the present invention, a mixed operationmanner may also be used. That is, when the electronic device is in thesetting state, the user may use a mixed operation that includes a touchoperation on the touch screen and a click operation on the physicalbutton, accordingly, when the electronic device is in the functionlocked state, the user may also perform an unlock operation by using amixed operation that includes a touch operation on the touch screen anda click operation on the physical button, an operable area is anyposition of the touch screen and any button of the physical button, thatis, the user performs a touch operation at any position in the touchscreen and a click operation on any button of the physical button, andthe apparatus for unlocking an electronic device may acquire the unlocktrigger information.

In the embodiment of the present invention, when an electronic device isin a function locked state, coding processing may be performed on unlocktrigger information according to duration information of each operationin the acquired unlock trigger information; and when the unlock triggerinformation on which the coding processing is performed matches presetunlock information, the function locked of the electronic device isunlocked. In addition, because operation duration information tends tobe concealed and is more imperceptible compared with a slide gesture ordirect character entering, in the embodiment of the present invention,by using the operation duration information as an unlock condition,concealment can be improved when a user unlocks the function locked ofthe electronic device, so that security of data in the electronic deviceis improved, thereby improving user experience.

Refer to FIG. 3, which is a schematic flowchart of still another methodfor unlocking an electronic device according to an embodiment of thepresent invention. The embodiment of the present invention is anextension manner of the embodiment shown in FIG. 1. As shown in FIG. 3,the method according to the embodiment of the present invention includesthe following steps S301 to S304.

S301. When an electronic device is in a function locked state, acquireunlock trigger information generated by at least one operation in anoperation area of the electronic device, where the unlock triggerinformation includes duration information of each operation of the atleast one operation, and the unlock trigger information further includesinformation of pressure produced by each operation of the at least oneoperation onto the operation area of the electronic device.

Specifically, the electronic device being in the function locked stateincludes the electronic device is in a screen locked state or anapplication in the electronic device is in a to-be-verified state, orthe like, and the apparatus for unlocking an electronic device acquiresunlock trigger information generated by at least one operation performedby a user in the operation area of the electronic device, where theunlock trigger information includes duration information of eachoperation of the at least one operation and further includes informationof pressure produced by each operation of the at least one operationonto the operation area of the electronic device. In addition to theduration information and the pressure information of the operation, theunlock trigger information may further include other feature informationof the operation, for example, double-click, click, operation strength,a slide length of a slide operation, or the like.

Preferably, to more effectively ensure security of the electronicdevice, the acquired unlock trigger information includes durationinformation and pressure information of each operation of two or moreoperations, and the apparatus for unlocking an electronic device mayarrange a combination of the duration information and the pressureinformation of each operation according to a time sequence to generate atrigger information sequence.

It should be noted that the electronic device may include a pressuresensor, where the pressure sensor may be disposed below a panel of theoperation area of the electronic device and is configured to sensepressure information of an operation performed by the user. Theoperation area of the electronic device may include a touch screen ofthe electronic device and/or a physical button of the electronic device,and the operation performed by the user may be a touch operationperformed on the touch screen by the user and/or a click operationperformed on the physical button by the user.

S302. Display the acquired unlock trigger information.

Specifically, when the user performs an operation, the apparatus forunlocking an electronic device may display the acquired unlock triggerinformation. Preferably, the apparatus for unlocking an electronicdevice may control display of a scale in a screen of the electronicdevice, so as to prompt the duration information and the pressureinformation of each operation of the at least one operation performed bythe user.

S303. Perform coding processing on the acquired unlock triggerinformation according to the duration information and the pressureinformation of each operation of the at least one operation.

Specifically, the apparatus for unlocking an electronic device mayperform the coding processing on the acquired unlock trigger informationaccording to the duration information and the pressure information ofeach operation of the at least one operation.

Preferably, the apparatus for unlocking an electronic device acquires atrigger level corresponding to duration information and pressureinformation of a same operation of the at least one operation, andperforms the coding processing on the unlock trigger informationaccording to the trigger level corresponding to the duration informationand the pressure information of the same operation of the at least oneoperation, where the trigger level corresponding to the durationinformation and the pressure information of the same operation isinformation of a value range that a combination of duration and pressurewhich covers the duration information and the pressure information ofeach operation falls into. The combination of the duration and thepressure may be implemented in a combination manner such as a product ofduration and pressure of each operation, a sum of the duration and thepressure of each operation, or the like.

Using the product of the duration and the pressure of each operation asan example, level 1 of the trigger level is defined as that the productof the duration and the pressure is 1, level 2 of the trigger level isdefined as that the product of the duration and the pressure is 2, level3 of the trigger level is defined as that the product of the durationand the pressure is 3, level 4 of the trigger level is defined as thatthe product of the duration and the pressure is 4, and the like. Whenthe user performs an operation according to the scale displayed in thescreen of the electronic device, if duration of the performed operationis 1× time unit and a pressure size of the performed operation is 1×pressure, a trigger level corresponding to the operation is level 1; ifthe duration of the performed operation is 1× time unit and the pressuresize of the performed operation is 2× pressure, a trigger levelcorresponding to the operation is level 2; if the duration of theperformed operation is 2× time unit and the pressure size of theperformed operation is 1× pressure, a trigger level corresponding to theoperation is also level 2. The rest may be deduced by analogy. Theapparatus for unlocking an electronic device may perform coding by usinga trigger level manner and according to duration and pressure of anoperation performed each time by the user, and perform coding processingon the foregoing trigger information into a trigger level sequence.

It should be noted that by defining a trigger level, operation durationand a pressure size of the user may be subject to a specific errorrange, which reduces a precision requirement for the operation durationand the pressure size. In addition, in a case in which the precisionrequirement for the operation duration and the pressure size is nothigh, the electronic device may not display or prompt the operationduration and the pressure size to the user. In this way, concealment ofthe unlock operation is higher, and security of data in the electronicdevice is better.

S304. When the unlock trigger information on which the coding processingis performed matches preset unlock information, unlock the functionlocked of the electronic device.

Specifically, the apparatus for unlocking an electronic device may matchthe unlock trigger information on which the coding processing isperformed with the preset unlock information; and when the unlocktrigger information on which the coding processing is performed matchesand is consistent with the preset unlock information, the apparatus forunlocking an electronic device unlocks the function locked of theelectronic device.

For example, if the preset unlock information is that a first operation(for example, a click operation) lasts for 2 s, operation pressure ofthe first operation is 2× pressure, a second operation lasts for 3 s,and operation pressure of the second operation is 1× pressure, and thesame case is applied to the unlock trigger information, the presetunlock information and the unlock trigger information are codedaccording to the same manner, and structures of the preset unlockinformation and the coded unlock trigger information are also the same.In this case, the function locked of the electronic device is unlocked.

It should be noted that the user may set or reset an unlock signal whenthe user begins to use the electronic device or in a process of usingthe electronic device, and the preset unlock information is used toprovide information matching for the apparatus for unlocking anelectronic device to unlock the function locked of the electronicdevice. When the electronic device enters a setting state, the apparatusfor unlocking an electronic device may acquire the duration informationand the pressure information of the at least one operation performed bythe user in the operation area of the electronic device to generate thepreset unlock information. Preferably, when the user performs anoperation, a scale may be displayed in a screen of the electronic deviceto prompt the duration information and the pressure information of eachoperation of the at least one operation performed by the user.

Certainly, the foregoing manner of generating the preset unlock signalis only an example, and the preset unlock signal may also be configuredin advance in the electronic device by a manufacturer or an operator.

In the embodiment of the present invention, when the electronic deviceis in the setting state, if an operation manner used by the user is atouch operation performed on the touch screen, accordingly, when theelectronic device is in the function locked state, the user needs toperform an unlock operation in a manner of performing a touch operationon the touch screen, an operable area is any position of the touchscreen, that is, the user performs a touch operation at any position inthe touch screen, and the apparatus for unlocking an electronic devicemay acquire the unlock trigger information. Similarly, when theelectronic device is in the setting state, if the operation manner usedby the user is a click operation performed on the physical button,accordingly, when the electronic device is in the function locked state,the user needs to perform an unlock operation in a manner of performinga click operation on the physical button, an operable area is any buttonof the physical button, that is, the user performs a click operation onany button of the physical button, and the apparatus for unlocking anelectronic device may acquire the unlock trigger information. Because aposition or a button is not limited in the operation area, when the userunlocks the function locked of the electronic device, concealment of anoperation performed by the user can be better improved.

Certainly, in the embodiment of the present invention, a mixed operationmanner may also be used. That is, when the electronic device is in thesetting state, the user may use a mixed operation that includes a touchoperation on the touch screen and a click operation on the physicalbutton, accordingly, when the electronic device is in the functionlocked state, the user may also perform an unlock operation by using amixed operation that includes a touch operation on the touch screen anda click operation on the physical button, an operable area is anyposition of the touch screen and any button of the physical button, thatis, the user performs a touch operation at any position in the touchscreen and a click operation on any button of the physical button, andthe apparatus for unlocking an electronic device may acquire the unlocktrigger information.

In the embodiment of the present invention, when an electronic device isin a function locked state, coding processing may be performed on unlocktrigger information according to duration information and pressureinformation of each operation in the acquired unlock triggerinformation; and when the unlock trigger information on which the codingprocessing is performed matches preset unlock information, the functionlocked of the electronic device is unlocked. In a manner of combiningduration and a pressure size, a means of unlocking the function lockedof the electronic device by a user may be added. In addition, becauseoperation duration information and the pressure information tend to beconcealed and are more imperceptible compared with a slide gesture ordirect character entering, in the embodiment of the present invention,by using the operation duration information and the pressure informationas an unlock condition, concealment can be improved when the userunlocks the function locked of the electronic device, so that securityof data in the electronic device is improved, thereby improving userexperience.

With reference to FIG. 4 to FIG. 6, the apparatus for unlocking anelectronic device provided by an embodiment of the present invention isdescribed in detail in the following. It should be noted that theapparatus for unlocking an electronic device shown in FIG. 4 to FIG. 6is configured to perform the methods according to the embodiments shownin FIG. 1 to FIG. 3 in the present invention. For the convenience ofdescription, only parts related to the embodiment of the presentinvention are shown. For undisclosed specific technical details,reference may be made to the embodiments shown in FIG. 1 to FIG. 3 inthe present invention.

Refer to FIG. 4, which is a schematic structural diagram of an apparatusfor unlocking an electronic device according to an embodiment of thepresent invention. As shown in FIG. 4, the apparatus 1 for unlocking anelectronic device according to the embodiment of the present inventionmay include an information acquiring module 11 and an unlocking module12.

The information acquiring module 11 is configured to, when an electronicdevice is in a function locked state, acquire unlock trigger informationgenerated by at least one operation in an operation area of theelectronic device, where the unlock trigger information includesduration information of each operation of the at least one operation.

During specific implementation, the electronic device being in thefunction locked state includes: the electronic device is in a screenlocked state or an application in the electronic device is in ato-be-verified state, or the like, and the information acquiring module11 acquires unlock trigger information generated by at least oneoperation performed by a user in the operation area of the electronicdevice, where the unlock trigger information includes durationinformation of each operation of the at least one operation. In additionto the duration information of the operation, the unlock triggerinformation may further include other feature information of theoperation, for example, double-click, click, operation strength, a slidelength of a slide operation, or the like.

Preferably, to more effectively ensure security of the electronicdevice, the unlock trigger information acquired by the informationacquiring module 11 includes duration information of each operation oftwo or more operations.

It should be noted that the operation area of the electronic device mayinclude a touch screen of the electronic device and/or a physical buttonof the electronic device, and the operation performed by the user may bea touch operation performed on the touch screen by the user and/or aclick operation performed on the physical button by the user.

The unlocking module 12 is configured to unlock the function locked ofthe electronic device when the unlock trigger information matches presetunlock information.

During specific implementation, the unlocking module 12 may match theduration information of each operation of the at least one operationwith the preset unlock information; and when the duration information ofeach operation of the at least one operation matches and is consistentwith the preset unlock information, the unlocking module 12 unlocks thefunction locked of the electronic device.

For example, if the preset unlock information is that a first operation(for example, a click operation) lasts for 5 s and a second operationlasts for 3 s, and the same case is applied to the unlock triggerinformation, the unlocking module 12 unlocks the function locked of theelectronic device.

It should be noted that the user may set or reset an unlock signal whenthe user begins to use the electronic device or in a process of usingthe electronic device, and the preset unlock information is used toprovide information matching for the apparatus for unlocking anelectronic device to unlock the function locked of the electronicdevice. When the electronic device enters a setting state, the apparatus1 for unlocking an electronic device may acquire the durationinformation of the at least one operation performed by the user in theoperation area of the electronic device to generate the preset unlockinformation. Preferably, when the user performs an operation, a scalemay be displayed in a screen of the electronic device to prompt theduration information of each operation of the at least one operationperformed by the user.

Certainly, the foregoing manner of generating the preset unlock signalis only an example, and the preset unlock signal may also be configuredin advance in the electronic device by a manufacturer or an operator.

In the embodiment of the present invention, when the electronic deviceis in the setting state, if an operation manner used by the user is atouch operation performed on the touch screen, accordingly, when theelectronic device is in the function locked state, the user needs toperform an unlock operation in a manner of performing a touch operationon the touch screen, an operable area is any position of the touchscreen, that is, the user performs a touch operation at any position inthe touch screen, and the information acquiring module 11 may acquirethe unlock trigger information. Similarly, when the electronic device isin the setting state, if the operation manner used by the user is aclick operation performed on the physical button, accordingly, when theelectronic device is in the function locked state, the user needs toperform an unlock operation in a manner of performing a click operationon the physical button, an operable area is any button of the physicalbutton, that is, the user performs a click operation on any button ofthe physical button, the information acquiring module 11 may acquire theunlock trigger information. Because a position or a button is notlimited in the operation area, when the user unlocks the function lockedof the electronic device, concealment of an operation performed by theuser can be better improved.

Certainly, in the embodiment of the present invention, a mixed operationmanner may also be used. That is, when the electronic device is in thesetting state, the user may use a mixed operation that includes a touchoperation on the touch screen and a click operation on the physicalbutton; accordingly, when the electronic device is in the functionlocked state, the user may also perform an unlock operation by using amixed operation that includes a touch operation on the touch screen anda click operation on the physical button, an operable area is anyposition of the touch screen and any button of the physical button, thatis, the user performs a touch operation at any position in the touchscreen and a click operation on any button of the physical button, andthe information acquiring module 11 may acquire the unlock triggerinformation.

In the embodiment of the present invention, when an electronic device isin a function locked state, unlock trigger information may be matchedaccording to duration information of each operation in the acquiredunlock trigger information; and the function locked of the electronicdevice is unlocked when the unlock trigger information matches presetunlock information. In addition, because operation duration informationtends to be concealed and is more imperceptible compared with a slidegesture or direct character entering, in the embodiment of the presentinvention, by using the operation duration information as an unlockcondition, concealment can be improved when a user unlocks the functionlocked of the electronic device, so that security of data in theelectronic device is improved, thereby improving user experience.

Refer to FIG. 5, which is a schematic structural diagram of anotherapparatus for unlocking an electronic device according to an embodimentof the present invention. As shown in FIG. 5, the apparatus 1 forunlocking an electronic device according to the embodiment of thepresent invention may include an information acquiring module 11, anunlocking module 12, a displaying module 13, and a first coding module14.

The information acquiring module 11 is configured to: when an electronicdevice is in a function locked state, acquire unlock trigger informationgenerated by at least one operation in an operation area of theelectronic device, where the unlock trigger information includesduration information of each operation of the at least one operation.

During specific implementation, the electronic device being in thefunction locked state includes the electronic device is in a screenlocked state or an application in the electronic device is in ato-be-verified state, or the like, and the information acquiring module11 acquires unlock trigger information generated by at least oneoperation performed by a user in the operation area of the electronicdevice, where the unlock trigger information includes durationinformation of each operation of the at least one operation. In additionto the duration information of the operation, the unlock triggerinformation may further include other feature information of theoperation, for example, double-click, click, operation strength, a slidelength of a slide operation, or the like.

Preferably, to more effectively ensure security of the electronicdevice, the unlock trigger information acquired by the informationacquiring module 11 includes duration information of each operation oftwo or more operations, and the information acquiring module 11 mayarrange the duration information of each operation according to a timesequence to generate a duration information sequence.

It should be noted that the operation area of the electronic device mayinclude a touch screen of the electronic device and/or a physical buttonof the electronic device, and the operation performed by the user may bea touch operation performed on the touch screen by the user and/or aclick operation performed on the physical button by the user.

The displaying module 13 is configured to display the acquired unlocktrigger information.

During specific implementation, when the user performs an operation, thedisplaying module 13 may display the acquired unlock triggerinformation. Preferably, the displaying module 13 may control display ofa scale in a screen of the electronic device, so as to prompt theduration information of each operation of the at least one operationperformed by the user.

The first coding module 14 is configured to perform coding processing onthe acquired unlock trigger information according to the durationinformation of each operation of the at least one operation.

During specific implementation, the first coding module 14 may performthe coding processing on the acquired unlock trigger informationaccording to the duration information of each operation of the at leastone operation.

Preferably, the first coding module 14 acquires a duration levelcorresponding to the duration information of each operation of the atleast one operation, and performs the coding processing on the unlocktrigger information according to a duration level corresponding toduration of each operation of the at least one operation, where theduration level corresponding to the duration information of eachoperation is duration range information that covers the durationinformation of each operation.

For example, level 1 of the duration level is defined as operationduration of (0,1] second, level 2 of the duration level is defined asoperation duration of (1, 2] seconds, level 3 of the duration level isdefined as operation duration of (2, 3] seconds, level 4 of the durationlevel is defined as operation duration of (3, 4] seconds, and the like.When the user performs an operation according to the scale displayed inthe screen of the electronic device, if duration of the performedoperation is within 0 to 1 second, a duration level corresponding to theoperation is level 1; if duration of the performed operation is within 1to 2 seconds, a duration level corresponding to the operation is level2, and the rest may be deduced by analogy. The first coding module 14may perform coding in a duration level manner and according to durationof an operation performed each time by the user, and perform codingprocessing on the foregoing duration information sequence into aduration level sequence.

It should be noted that by defining a duration level, operation durationof the user may be subject to a specific error range, which reduces aprecision requirement for the operation duration. In addition, in a casein which the precision requirement for the operation duration is nothigh, the electronic device may not display or prompt the operationduration to the user. In this way, concealment of the unlock operationis higher, and security of data in the electronic device is better.

The unlocking module 12 is configured to unlock the function locked ofthe electronic device when the unlock trigger information matches presetunlock information.

During specific implementation, the unlocking module 12 is specificallyconfigured to: when the unlock trigger information on which the codingprocessing is performed by the first coding module 14 matches the presetunlock information, unlock the function locked of the electronic device.

The apparatus 1 for unlocking an electronic device may match the unlocktrigger information on which the coding processing is performed with thepreset unlock information; and when the unlock trigger information onwhich the coding processing is performed matches and is consistent withthe preset unlock information, the unlocking module 12 unlocks thefunction locked of the electronic device.

For example, if the preset unlock information is that a first operation(for example, a click operation) lasts for 5 s and the second operationlasts for 3 s, and the same case is applied to the unlock triggerinformation, the preset unlock information and the unlock triggerinformation are coded according to the same manner, and structures ofthe preset unlock information and the coded unlock trigger informationare also the same. In this case, the unlocking module 12 unlocks thefunction locked of the electronic device.

It should be noted that the user may set or reset an unlock signal whenthe user begins to use the electronic device or in a process of usingthe electronic device, and the preset unlock information is used toprovide information matching for the apparatus for unlocking anelectronic device to unlock the function locked of the electronicdevice. When the electronic device enters a setting state, the apparatus1 for unlocking an electronic device may acquire the durationinformation of the at least one operation performed by the user in theoperation area of the electronic device to generate the preset unlockinformation. Preferably, when the user performs an operation, a scalemay be displayed in a screen of the electronic device to prompt theduration information of each operation of the at least one operationperformed by the user.

Certainly, the foregoing manner of generating the preset unlock signalis only an example, and the preset unlock signal may also be configuredin advance in the electronic device by a manufacturer or an operator.

In the embodiment of the present invention, when the electronic deviceis in the setting state, if an operation manner used by the user is atouch operation performed on the touch screen, accordingly, when theelectronic device is in the function locked state, the user needs toperform an unlock operation in a manner of performing a touch operationon the touch screen, an operable area is any position of the touchscreen, that is, the user performs a touch operation at any position inthe touch screen, and the information acquiring module 11 may acquirethe unlock trigger information. Similarly, when the electronic device isin the setting state, if the operation manner used by the user is aclick operation on the physical button, accordingly, when the electronicdevice is in the function locked state, the user needs to perform anunlock operation in a manner of performing a click operation on thephysical button, an operable area is any button of the physical button,that is, the user performs a click operation on any button of thephysical button, and the information acquiring module 11 may acquire theunlock trigger information. Because a position or a button is notlimited in the operation area, when the user unlocks the function lockedof the electronic device, concealment of an operation performed by theuser can be better improved.

Certainly, in the embodiment of the present invention, a mixed operationmanner may also be used. That is, when the electronic device is in thesetting state, the user may use a mixed operation that includes a touchoperation on the touch screen and a click operation on the physicalbutton, accordingly, when the electronic device is in the functionlocked state, the user may also perform an unlock operation by using amixed operation that includes a touch operation on the touch screen anda click operation on the physical button, an operable area is anyposition of the touch screen and any button of the physical button, thatis, the user performs a touch operation at any position in the touchscreen and a click operation on any button of the physical button, andthe information acquiring module 11 may acquire the unlock triggerinformation.

In the embodiment of the present invention, when an electronic device isin a function locked state, coding processing may be performed on unlocktrigger information according to duration information of each operationin the acquired unlock trigger information; and when the unlock triggerinformation on which the coding processing is performed matches presetunlock information, the function locked of the electronic device isunlocked. In addition, because operation duration information tends tobe concealed and is more imperceptible compared with a slide gesture ordirect character entering, in the embodiment of the present invention,by using the operation duration information as an unlock condition,concealment can be improved when a user unlocks the function locked ofthe electronic device, so that security of data in the electronic deviceis improved, thereby improving user experience.

Refer to FIG. 6, which is a schematic structural diagram of stillanother apparatus for unlocking an electronic device according to anembodiment of the present invention. As shown in FIG. 6, the apparatus 1for unlocking an electronic device according to the embodiment of thepresent invention may include an information acquiring module 11, anunlocking module 12, a displaying module 13, and a second coding module15.

The information acquiring module 11 is configured to, when an electronicdevice is in a function locked state, acquire unlock trigger informationgenerated by at least one operation in an operation area of theelectronic device, where the unlock trigger information includesduration information of each operation of the at least one operation.

During specific implementation, the electronic device being in thefunction locked state includes the electronic device is in a screenlocked state or an application in the electronic device is in ato-be-verified state, or the like, and the information acquiring module11 acquires unlock trigger information generated by at least oneoperation performed by a user in the operation area of the electronicdevice, where the unlock trigger information includes durationinformation of each operation of the at least one operation and furtherincludes information of pressure produced by each operation of the atleast one operation onto the operation area of the electronic device. Inaddition to the duration information and the pressure information of theoperation, the unlock trigger information may further include otherfeature information of the operation, for example, double-click, click,operation strength, a slide length of a slide operation, or the like.

Preferably, to more effectively ensure security of the electronicdevice, the unlock trigger information acquired by the informationacquiring module 11 includes duration information and pressureinformation of each operation of two or more operations, and theinformation acquiring module 11 may arrange a combination of theduration information and the pressure information of each operationaccording to a time sequence to generate a trigger information sequence.

It should be noted that the electronic device may include a pressuresensor, where the pressure sensor may be disposed below a panel of theoperation area of the electronic device and is configured to sensepressure information of an operation performed by the user. Theoperation area of the electronic device may include a touch screen ofthe electronic device and/or a physical button of the electronic device,and the operation performed by the user may be a touch operationperformed on the touch screen by the user and/or a click operationperformed on the physical button by the user.

The displaying module 13 is configured to display the acquired unlocktrigger information.

During specific implementation, when the user performs an operation, thedisplaying module 13 may display the acquired unlock triggerinformation. Preferably, the displaying module 13 may control display ofa scale in a screen of the electronic device, so as to prompt theduration information and the pressure information of each operation ofthe at least one operation performed by the user.

The second coding module 15 is configured to perform coding processingon the acquired unlock trigger information according to the durationinformation and the pressure information of each operation of the atleast one operation.

During specific implementation, the second coding module 15 may performthe coding processing on the acquired unlock trigger informationaccording to the duration information and the pressure information ofeach operation of the at least one operation.

Preferably, the second coding module 15 acquires a trigger levelcorresponding to duration information and pressure information of a sameoperation of the at least one operation, and performs the codingprocessing on the unlock trigger information according to the triggerlevel corresponding to the duration information and the pressureinformation of the same operation of the at least one operation, wherethe trigger level corresponding to the duration information and thepressure information of the same operation is information of a valuerange that a combination of duration and pressure which covers theduration information and the pressure information of each operationfalls into. The combination of the duration and the pressure may beimplemented in a combination manner such as a product of duration andpressure of each operation, a sum of the duration and the pressure ofeach operation, or the like.

Using the product of the duration and the pressure of each operation asan example, level 1 of the trigger level is defined as that the productof the duration and the pressure is 1, level 2 of the trigger level isdefined as that the product of the duration and the pressure is 2, level3 of the trigger level is defined as that the product of the durationand the pressure is 3, level 4 of the trigger level is defined as thatthe product of the duration and the pressure is 4, and the like. Whenthe user performs an operation according to the scale displayed in thescreen of the electronic device, if duration of the performed operationis 1× time unit and a pressure size of the performed operation is 1×pressure, a trigger level corresponding to the operation is level 1; ifthe duration of the performed operation is 1× time unit and the pressuresize of the performed operation is 2× pressure, a trigger levelcorresponding to the operation is level 2; if the duration of theperformed operation is 2× time unit and the pressure size of theperformed operation is 1× pressure, a trigger level corresponding to theoperation is also level 2. The rest may be deduced in the same manner.The second coding module 15 may perform coding by using a trigger levelmanner and according to duration and pressure of an operation performedeach time by the user, and perform coding processing on the foregoingtrigger information sequence into a trigger level sequence.

It should be noted that by defining a trigger level, operation durationand a pressure size of the user may be subject to a specific errorrange, which reduces a precision requirement for the operation durationand the pressure size. In addition, in a case in which the precisionrequirement for the operation duration and the pressure size is nothigh, the electronic device may not display or prompt the operationduration and the pressure size to the user. In this way, concealment ofthe unlock operation is higher, and security of data in the electronicdevice is better.

The unlocking module 12 is configured to unlock the function locked ofthe electronic device when the unlock trigger information matches presetunlock information.

During specific implementation, the unlocking module 12 is specificallyconfigured to, when the unlock trigger information on which the codingprocessing is performed by the second coding module 15 matches thepreset unlock information, unlock the function locked of the electronicdevice.

The apparatus 1 for unlocking an electronic device may match the unlocktrigger information on which the coding processing is performed with thepreset unlock information; and when the unlock trigger information onwhich the coding processing is performed matches and is consistent withthe preset unlock information, the unlocking module 12 unlocks thefunction locked of the electronic device.

For example, if the preset unlock information is that a first operation(for example, a click operation) lasts for 2 seconds (s), operationpressure of the first operation is 2× pressure, a second operation lastsfor 3 s, and operation pressure of the second operation is 1× pressure,and the same case is applied to the unlock trigger information, thepreset unlock information and the unlock trigger information are codedaccording to the same manner, and structures of the preset unlockinformation and the coded unlock trigger information are also the same.In this case, the unlocking module 12 unlocks the function locked of theelectronic device.

It should be noted that the user may set or reset an unlock signal whenthe user begins to use the electronic device or in a process of usingthe electronic device, and the preset unlock information is used toprovide information matching for the apparatus for unlocking anelectronic device to unlock the function locked of the electronicdevice. When the electronic device enters a setting state, the apparatus1 for unlocking an electronic device may acquire the durationinformation and the pressure information of the at least one operationperformed by the user in the operation area of the electronic device togenerate the preset unlock information. Preferably, when the userperforms an operation, a scale may be displayed in a screen of theelectronic device to prompt the duration information and the pressureinformation of each operation of the at least one operation performed bythe user.

Certainly, the foregoing manner of generating the preset unlock signalis only an example, and the preset unlock signal may also be configuredin advance in the electronic device by a manufacturer or an operator.

In the embodiment of the present invention, when the electronic deviceis in the setting state, if an operation manner used by the user is atouch operation performed on the touch screen, accordingly, when theelectronic device is in the function locked state, the user needs toperform an unlock operation in a manner of performing a touch operationon the touch screen, an operable area is any position of the touchscreen, that is, the user performs a touch operation at any position inthe touch screen, and the information acquiring module 11 may acquirethe unlock trigger information. Similarly, when the electronic device isin the setting state, if the operation manner used by the user is aclick operation on the physical button, accordingly, when the electronicdevice is in the function locked state, the user needs to perform anunlock operation in a manner of performing a click operation on thephysical button, an operable area is any button of the physical button,that is, the user performs a click operation on any button of thephysical button, and the information acquiring module 11 may acquire theunlock trigger information. Because a position or a button is notlimited in the operation area, when the user unlocks the function lockedof the electronic device, concealment of an operation performed by theuser can be better improved.

Certainly, in the embodiment of the present invention, a mixed operationmanner may also be used. That is, when the electronic device is in thesetting state, the user may use a mixed operation that includes a touchoperation on the touch screen and a click operation on the physicalbutton, accordingly, when the electronic device is in the functionlocked state, the user may also perform an unlock operation by using amixed operation that includes a touch operation on the touch screen anda click operation on the physical button, an operable area is anyposition of the touch screen and any button of the physical button, thatis, the user performs a touch operation at any position in the touchscreen and a click operation on any button of the physical button, andthe information acquiring module 11 may acquire the unlock triggerinformation.

In the embodiment of the present invention, when an electronic device isin a function locked state, coding processing may be performed on unlocktrigger information according to duration information and pressureinformation of each operation in the acquired unlock triggerinformation; and when the unlock trigger information on which the codingprocessing is performed matches preset unlock information, the functionlocked of the electronic device is unlocked. In a manner of combiningduration and a pressure size, a means of unlocking the function lockedof the electronic device by a user may be added. In addition, becauseoperation duration information and the pressure information tend to beconcealed and are more imperceptible compared with a slide gesture ordirect character entering, in the embodiment of the present invention,by using the operation duration information and the pressure informationas an unlock condition, concealment can be improved when the userunlocks the function locked of the electronic device, so that securityof data in the electronic device is improved, thereby improving userexperience.

It should be noted that the first coding module 14 of the embodimentshown in FIG. 5 and the second coding module 15 of the embodiment shownin FIG. 6 may be concurrently integrated into the apparatus 1 forunlocking an electronic device, and the apparatus 1 for unlocking anelectronic device may determine, according to an unlock manner used bythe user, to perform the coding processing on the unlock triggerinformation by using the first coding module 14 or the second codingmodule 15.

The apparatus for unlocking an electronic device provided by theembodiment of the present invention may be implemented based on acomputer system, and the methods shown in FIG. 1 to FIG. 3 may beimplemented in the apparatus for unlocking an electronic device based onthe computer system. FIG. 7 shows an embodiment of an apparatus forunlocking an electronic device based on a computer system. The apparatus400 for unlocking an electronic device provided by this embodiment mayinclude a processor 401, a memory 402, and an input/output device 403.

The memory 402 is configured to store program code. The processor 401 isconfigured to execute the program code stored in the memory 402. In theembodiment of the present invention, the memory 402 stores first programcode, and the processor 401 is configured to execute the first programcode, and perform the following operations: when an electronic device isin a function locked state, acquiring unlock trigger informationgenerated by at least one operation in an operation area of theelectronic device, where the unlock trigger information includesduration information of each operation of the at least one operation;and unlocking the function locked of the electronic device when theunlock trigger information matches preset unlock information.

The input/output device 403 may be two independent devices, for example,a physical button and a display screen or a touch screen and a displayscreen, or the like. The input/output device 403 may also be one device,for example, a display screen with a touch function, or the like. Theapparatus 400 for unlocking an electronic device receives the unlocktrigger information by using the input/output device 403 (shown in FIG.1 to FIG. 3 illustrating the method embodiments). The processorprocesses, according to the program code in the memory 402, the unlocktrigger information received by the input/output device 403.

During specific implementation, in a first feasible implementationmanner of the embodiment of the present invention, the processor 401further performs the following steps: performing coding processing onthe acquired unlock trigger information according to the durationinformation of each operation of the at least one operation; and whenthe unlock trigger information on which the coding processing isperformed matches the preset unlock information, unlocking the functionlocked of the electronic device.

Specifically, the processor 401 acquires a duration level correspondingto the duration information of each operation of the at least oneoperation, and performs the coding processing on the unlock triggerinformation according to a duration level corresponding to duration ofeach operation of the at least one operation, where the duration levelcorresponding to the duration information of each operation is durationrange information that covers the duration information of eachoperation.

In a second feasible implementation manner of the embodiment of thepresent invention, the unlock trigger information further includesinformation of pressure produced by each operation of the at least oneoperation onto the operation area of the electronic device. Theprocessor 401 performs coding processing on the acquired unlock triggerinformation according to the duration information and the pressureinformation of each operation of the at least one operation; and whenthe unlock trigger information on which the coding processing isperformed matches the preset unlock information, the processor 401unlocks the function locked of the electronic device.

Specifically, the processor 401 acquires a trigger level correspondingto duration information and pressure information of a same operation ofthe at least one operation, and performs the coding processing on theunlock trigger information according to the trigger level correspondingto the duration information and the pressure information of the sameoperation of the at least one operation, where the trigger levelcorresponding to the duration information and the pressure informationof the same operation is information of a value range that a combinationof duration and pressure which covers the duration information and thepressure information of each operation falls into.

The processor 401 may further display the acquired unlock triggerinformation. Specifically, the processor 401 displays the unlock triggerinformation on the input/output device 403, for example, the processorinstructs a display to display the unlock trigger information (theduration information and/or the pressure information).

It should be noted that the processor 401 may be a central processingunit (CPU), an application-specific integrated circuit (ASIC) or thelike. A management gateway device in this embodiment may include a bus404. The processor 401, the memory 402, and the input/output device 403may be connected to and communicate with each other through the bus 404.The memory 402 may include an entity having a storage function, forexample, a random access memory (RAM), a read-only memory (ROM), amagnetic disk or the like. The preset unlock information in theembodiment of the present invention may be temporarily stored in theRAM.

It can be seen that, in the embodiment of the present invention, when anelectronic device is in a function locked state, unlock triggerinformation may be matched according to duration information of eachoperation or duration information and pressure information of eachoperation in the acquired unlock trigger information; and the functionlocked of the electronic device is unlocked when the unlock triggerinformation matches preset unlock information. In addition, becauseoperation duration information tends to be concealed and is moreimperceptible compared with a slide gesture or direct characterentering, by using the operation duration information as an unlockcondition, concealment can be improved when a user unlocks the functionlocked of the electronic device, so that security of data in theelectronic device is improved, thereby improving user experience.

According to descriptions of the foregoing implementation manners, aperson skilled in the art can clearly understand that the presentinvention may be implemented by hardware, firmware, or a combination ofthe two. When the present invention is implemented by software, thefunctions may be stored in a computer-readable medium or may betransmitted as one or more instructions or code on the computer-readablemedium. The computer-readable medium includes a computer storage mediumand a communications medium, where the communications medium includesany medium that facilitates transfer of computer programs from one placeto another place. The storage medium may be any available medium that isaccessible by a computer. Examples of the computer-readable mediuminclude but are not limited to a RAM, a ROM, or other optical diskstorage media or disk storage media or other magnetic storage devices,or any other computer-accessible media that can be used to carry orstore expected program codes in an instruction form or in a datastructure form. Moreover, any connection may be the computer readablemedium properly. For example, if software is transmitted from a website,a server or another remote source by using a coaxial cable, an opticalcable, a twisted pair, or a digital subscriber line, or by using a radiotechnology such as infrared transmission, radio transmission, ormicrowave transmission, the coaxial cable, the optical cable, thetwisted pair, or the digital subscriber line, or the radio technologysuch as infrared transmission, radio transmission, or microwavetransmission, is included in a fixation of the medium. A disk and a discused in the present invention include a compact disc, a laser disc, anoptical disc, a digital versatile disc, a floppy disk, and a BLUE RAYdisc, where the disk generally copies data magnetically, and the disccopies data optically by using laser. Combinations of them shall alsofall within the protection scope of the computer-readable medium.

The foregoing disclosed descriptions are merely exemplary embodiments ofthe present invention, and certainly, are not intended to limit theprotection scope of the present invention. Therefore, equivalentvariations made according to the claims of the present invention shallfall within the scope of the present invention.

What is claimed is:
 1. A method for unlocking an electronic device,comprising: displaying a scale on a screen of the electronic device toprompt duration information and pressure information of each operationof at least one operation in an operation area of the electronic device;acquiring unlock trigger information generated by the at least oneoperation in the operation area of the electronic device when theelectronic device is in a function locked state, wherein the unlocktrigger information comprises the duration information and the pressureinformation of each operation of the at least one operation; calculatinga mathematical combination of the duration information and the pressureinformation of each operation of the at least one operation, wherein themathematical combination comprises multiplying the duration informationand the pressure information to produce a product; acquiring a presettrigger level corresponding to the duration information and the pressureinformation of the at least one operation; and unlocking the functionlocked state of the electronic device when the mathematical combinationof the duration information and the pressure information of eachoperation of the at least one operation matches the preset triggerlevel.
 2. The method according to claim 1, further comprising performingcoding processing on the acquired unlock trigger information accordingto the duration information of each operation of the at least oneoperation, and wherein unlocking the function locked state of theelectronic device when the unlock trigger information matches presetunlock information comprises unlocking the function locked state of theelectronic device when the unlock trigger information on which thecoding processing is performed matches the preset unlock information. 3.The method according to claim 2, wherein performing coding processing onthe acquired unlock trigger information according to the durationinformation of each operation of the at least one operation comprises:acquiring a duration level corresponding to the duration information ofeach operation of the at least one operation; and performing the codingprocessing on the unlock trigger information according to a durationlevel corresponding to duration of each operation of the at least oneoperation, wherein the duration level corresponding to the durationinformation of each operation is duration range information that coversthe duration information of each operation.
 4. The method according toclaim 1, wherein the pressure information is produced by each operationof the at least one operation onto the operation area of the electronicdevice.
 5. The method according to claim 4, further comprisingperforming coding processing on the acquired unlock trigger informationaccording to the duration information and the pressure information ofeach operation of the at least one operation, and wherein unlocking thefunction locked state of the electronic device when the unlock triggerinformation matches the preset unlock information comprises unlockingthe function locked state of the electronic device when the unlocktrigger information on which the coding processing is performed matchesthe preset unlock information.
 6. The method according to claim 5,wherein performing coding processing on the acquired unlock triggerinformation according to the duration information and the pressureinformation of each operation of the at least one operation comprisesperforming the coding processing on the unlock trigger informationaccording to the preset trigger level corresponding to the durationinformation and the pressure information of the at least one operation,wherein the preset trigger level corresponding to the durationinformation and the pressure information of the same operation isinformation of a value range.
 7. The method according to claim 1,wherein after acquiring the unlock trigger information generated by theat least one operation in the operation area of the electronic device,the method further comprises displaying the acquired unlock triggerinformation.
 8. The method according to claim 1, wherein the operationarea of the electronic device comprises a touch screen of the electronicdevice and a physical button of the electronic device.
 9. An apparatusfor unlocking an electronic device, comprising: a non-volatile computerreadable medium configured to store instructions thereon; and a computerprocessor coupled to the non-volatile computer readable medium andconfigured to execute the instructions to: display a scale on a screenof the electronic device to prompt duration information and pressureinformation of each operation of at least one operation in an operationarea of the electronic device; acquire unlock trigger informationgenerated by the at least one operation in the operation area of theelectronic device when the electronic device is in a function lockedstate, wherein the unlock trigger information comprises the durationinformation and the pressure information of each operation of the atleast one operation; calculate a mathematical combination of theduration information and the pressure information of each operation ofthe at least one operation, wherein the mathematical combinationcomprises multiplying the duration information and the pressureinformation to produce a product; acquire a preset trigger levelcorresponding to the duration information and the pressure informationof the at least one operation; and unlock the function locked state ofthe electronic device when the mathematical combination of the durationinformation and the pressure information of each operation of the atleast one operation matches the preset trigger level.
 10. The apparatusaccording to claim 9, wherein the computer processor is configured toexecute the instructions to: perform coding processing on the acquiredunlock trigger information according to the duration information of eachoperation of the at least one operation; and unlock the function lockedstate of the electronic device when the unlock trigger information onwhich the coding processing is performed by the first coding modulematches the preset unlock information.
 11. The apparatus according toclaim 10, wherein the computer processor is configured to execute theinstructions to: acquire a duration level corresponding to the durationinformation of each operation of the at least one operation; and performthe coding processing on the unlock trigger information according to aduration level corresponding to duration of each operation of the atleast one operation, wherein the duration level corresponding to theduration information of each operation is duration range informationthat covers the duration information of each operation.
 12. Theapparatus according to claim 9, further comprising a pressure sensorcoupled to the computer processor, and wherein the unlock triggerinformation further comprises the pressure information produced by eachoperation of the at least one operation onto the operation area of theelectronic device.
 13. The apparatus according to claim 12, wherein thecomputer processor is configured to execute the instructions to performcoding processing on the acquired unlock trigger information accordingto the duration information and the pressure information of eachoperation of the at least one operation, wherein the unlocking module isspecifically configured to unlock the function locked state of theelectronic device when the unlock trigger information on which thecoding processing is performed by the second coding module matches thepreset unlock information.
 14. The apparatus according to claim 13,wherein the computer processor is configured to execute the instructionsto perform the coding processing on the unlock trigger informationaccording to the preset trigger level corresponding to the durationinformation and the pressure information of the at least one operation,wherein the preset trigger level corresponding to the durationinformation and the pressure information is information of a valuerange.
 15. The apparatus according to claim 9, wherein the computerprocessor is further configured to execute the instructions to displaythe acquired unlock trigger information on the screen.
 16. The apparatusaccording to claim 9, wherein the operation area of the electronicdevice comprises a touch screen of the electronic device and a physicalbutton of the electronic device.
 17. A computer system, comprising: aprocessor, and a memory coupled to the processor, wherein the processoris configured to: display a scale on a screen of an electronic device toprompt duration information and pressure information of each operationof at least one operation in an operation area of the electronic device;read a program stored in the memory to acquire unlock triggerinformation generated by the at least one operation in the operationarea of the electronic device when the electronic device is in afunction locked state, wherein the unlock trigger information comprisesthe duration information and the pressure information of each operationof the at least one operation; calculate a mathematical combination ofthe duration information and the pressure information of each operationof the at least one operation, wherein the mathematical combinationcomprises multiplying the duration information and the pressureinformation to produce a product; acquire a preset trigger levelcorresponding to the duration information and the pressure informationof the at least one operation; and unlock the function locked state ofthe electronic device when the mathematical combination of the durationinformation and the pressure information of each operation of the atleast one operation matches the preset trigger level.
 18. The systemaccording to claim 17, further comprising a pressure sensor coupled tothe processor, wherein the unlock trigger information further comprisesthe pressure information produced by each operation of the at least oneoperation onto the operation area of the electronic device.
 19. Thesystem according to claim 18, wherein the processor is furtherconfigured to: perform coding processing on the acquired unlock triggerinformation according to the duration information and the pressureinformation of each operation of the at least one operation; and unlockthe function locked state of the electronic device when the unlocktrigger information on which the coding processing is performed matchesthe preset unlock information.
 20. The system according to claim 19,wherein the processor is further configured to perform the codingprocessing on the unlock trigger information according to the triggerlevel corresponding to the duration information and the pressureinformation of the at least one operation, wherein the trigger levelcorresponding to the duration information and the pressure informationis information of a value range.